﻿namespace KingerRobot.MexicoSailunWMS.SpiService;
internal interface IWcsAsrsCrnOutPut
{
    /// <summary>
    /// 获取要出库所有出库口
    /// </summary>
    List<AsrsCrnOutPutBean> GetAsrsCrnOutPut();
    /// <summary>
    /// 修改数量
    /// </summary>
    /// <param name="id"></param>
    /// <param name="number"></param>
    /// <returns></returns>
    int UpdateAsrsCrnOutPutCount(long id, int number, string reason);
    /// <summary>
    /// 根据堆垛机获取出库库位信息
    /// </summary>
    /// <param name="crnId"></param>
    /// <returns></returns>
    POWcsAsrsCrnOutput GetAsrsCrnOutPutByCrnId(long crnId);
}


public class AsrsCrnOutPutBean
{
    public long Id { get; set; }
    /// <summary>
    /// 区域名称
    /// </summary>
    public string AreaName { get; set; }
    /// <summary>
    /// 堆垛机名称
    /// </summary>
    public string CrnName { get; set; }

    /// <summary>
    /// 堆垛机编号 Id
    /// </summary>
    public long? CrnCode { get; set; }
    /// <summary>
    /// B放胎位
    /// </summary>
    public string OutputLoc1 { get; set; }
    /// <summary>
    /// A放胎位
    /// </summary>
    public string OutputLoc2 { get; set; }
    /// <summary>
    /// 限制入库数量
    /// </summary>
    public int Number { get; set; }

    public string Reason { get; set; }

    public int? EquipEnable { get; set; }
}